package com.gun.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 配置类
 */
public class Configuration {


    /**
     * java 官方封装的对象
     */
    private DataSource dataSource;

    /**
     *  key: statementid 语句的id value:封装好的mappedStatemen(映射语句)对象
     */
    Map<String,MappedStatement> mappedStatementMap = new HashMap<>();


    /**
     * 数据源对象初始化
     * @return
     */
    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
